-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signed orders API #139
Signed orders API #139
Conversation
689a812
to
279a5fe
Compare
69e47f8
to
2ad89aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are some commented log lines which can be removed
|
||
const ( | ||
Limit OrderType = iota | ||
IOC | ||
Limit = hu.Limit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this to keep it compatible with existing data in memory db?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved the data structures to hu. but a lot of code was referencing Limit
directly from this package.
|
||
// Trading API methods | ||
|
||
// func (o *SignedOrder) UnmarshalJSON(data []byte) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are these commented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Used this earlier, but now I changed encoding from json to abo encoded
* tradingApi.PostOrder * start modifying precompile * all validations! * stash * fix unit tests * trading_postOrder API works 🎉 * misc * Matching works! * chainid and verifying contract * stash * fix test * resolve shubhams comments
Why this should be merged
jurorv2
that adds functionality to match signed orders with any other order typeAccompanying contracts PR - https://github.com/hubble-exchange/hubble-protocol/pull/214